local corp = {
   web = "www.google.com",   --索引为字符串，key = "web",
                             -- value = "www.google.com"
   telephone = "12345678",   --索引为字符串
   staff = {"Jack", "Scott", "Gary"}, --索引为字符串，值也是一个表
   100876,              --相当于 [1] = 100876，此时索引为数字
   --      key = 1, value = 100876
   100191,              --相当于 [2] = 100191，此时索引为数字
   [10] = 360,          --直接把数字索引给出
   ["city"] = "Beijing" --索引为字符串
}

print(corp.web)               -->output:www.google.com
print(corp["telephone"])      -->output:12345678
print(corp[2])                -->output:100191
print(corp["city"])           -->output:"Beijing"
print(corp.staff[1])          -->output:Jack
print(corp["staff"][1])
print(corp[10])               -->output:360

local corp = nil

local corp = {
   web = "www.lavenliu.cn",
   telephone = "02166668888",
   staff = {"Jack", "Laven", "Taoqi"},
   100876, -- index is 1
   100191, -- index is 2
   [10] = 360, -- index is 10
   ["city"] = "Shanghai"
}

print(corp.web)
print(corp["telephone"])
print(corp[2])
print(corp["city"])
print(corp.staff[1])
print(corp["staff"][1])
print(corp[10])
